package com.mf.entity.vo;

import io.github.heollhai.common.utils.tree.AbstractTreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import java.time.LocalDateTime;

/**
 * @Author: lmf
 * @Create: 2024/8/24 22:10
 * Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BasicDataDictionaryVo extends AbstractTreeNode<BasicDataDictionaryVo, Integer, Integer> {
    private Integer id;
    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空")
    private String label;

    /**
     * 字典值
     */
    private String value;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态
     */
    private Integer status;
    /**
     * 编号
     */
    private String code;

    /**
     * 父级编号
     */
    private String pCode;

    /**
     * 可操作该条数据的角色id
     */
    private String editRoleId;

    /**
     * 0:所有用户可见；1:对应操作者(角色)可见
     */
    private Integer type;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;

    /**
     * 备注
     */
    private String remark;
}
